﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class AttackInput : MonoBehaviour
{
    public bool Attack;
    public bool Ability;
    public bool Ultimate;
    public bool EnableAttack;

    private void Awake()
    {
        Attack = false;
        Ability = false;
        Ultimate = false;
        EnableAttack = true;
    }

    private void Update()
    {
        if(Input.GetButtonDown("Attack") && EnableAttack)
        {
            Attack = true;
            print("尝试进行攻击");
        }
        else
        {
            Attack = false;
        }

        if (Input.GetButtonDown("Ability") && EnableAttack)
        {
            Ability = true;
            print("尝试使用小技能");
        }
        else
        {
            Ability = false;
        }

        if (Input.GetButtonDown("Ultimate") && EnableAttack)
        {
            Ultimate = true;
            print("尝试使用大招");
        }
        else
        {
            Ultimate = false;
        }
    }
}
